package com.a01_2021.thousandstimes.saas.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.saas.entity.Union;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author FRQ
 * @since 2021-02-22
 */
public interface UnionService extends IService<Union> {

    List<Union> getAllUnion();

    Union addUnion(String unionName, String des, long hostCompanyId) throws CustomException;

    boolean isUnion(long unionId);
}
